﻿@{
    Layout = null;
}

@model AmazeUI.Imodel.ILoginModel

@if (Model == null)
{ 
     <li><a href="@Url.Action("Login", "Admin")"><span class="am-icon-user"></span> 登录</a></li>
}
else
{
    <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
            <span class="am-icon-users"></span> @Model.Name <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
            <li><a href="#"><span class="am-icon-user"></span> 资料</a></li>
            <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
            <li><a href="@Url.Action("LogoutView","Admin")"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
    </li>
}


